
<%= simple_form_for(@so_transaction) do |f| %>
  <%= f.error_notification %>
  <%= f.error_notification message: f.object.errors[:base].to_sentence if f.object.errors[:base].present? %>

<div class="row">
	<div class="col-md-6">
		<%= f.association :customer, label_method: :name, value_method: :id , label: '客户' %>
	</div>
	<div class="col-md-6">
		<div class="form-group select required so_transaction_date">
			<label class="form-control-label select required" for="so_transaction_date">付款日期 <abbr title="required">*</abbr></label>
			<div class="input-group">
				<input name="so_transaction[date]" class="form-control date-picker required" id="so_transaction_date" type="text" data-date-format="yyyy-mm-dd" placeholder="yyyy-mm-dd">
				<span class="input-group-addon"> <i class="fa fa-calendar"></i> </span>
			</div>
		</div>
	</div>
</div>

<div class="row">
	<div class="col-md-6">
		<%= f.input :amount, label: '金额' %>
	</div>
	<div class="col-md-6">
		<%= f.input :comment, label: '备注' %>
	</div>
</div>

 <%= f.button :submit, '提交',class: "btn btn-blue btn-xs" %>


<% end %>

